package com.jiashihui.schema_lgorithm.schema.state;

/**
 * @author jiashihui
 * @describe: 状态类
 * @date 2019/03/14
 */
public class State {
    /* 状态值 */
    private String value;

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    /**
     * 上线
     *
     * @author jiashihui
     */
    public void online() {
        System.out.println("execute online operation");
    }

    /**
     * 离线
     *
     * @author jiashihui
     */
    public void offline() {
        System.out.println("execute offline operation");
    }
}
